try:
    num1 = eval(input("①输入合法的整数:"))
    num2 = eval(input("②输入合法的整数:"))
    print(num1/num2)
except NameError:
    print("请输入一个合法的被除数")
except ZeroDivisionError:
    print("除数为0不合法")
